<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="/secu" prefix="secu"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>欢迎访问产品运营互动中心！</title>
		<%@ include file="/commons/include/head-meta.inc.jsp"%>
		
		<script type="text/javascript">
			function loadfun(){
				var trr=document.getElementById("trr");
				trr.disabled=true;
			}
		
			function change(o){
				var dd=document.getElementById("dd");
				if("businessTag"==o.value){
					dd.innerHTML="业务标签：";
				}else{
					dd.innerHTML="操作原因：";
				}
				
				var trr=document.getElementById("trr");
				if("change"==o.value){
					trr.disabled=false;
				}else{
					trr.disabled=true;
				}
				
			}
		</script>
		<script type="text/javascript">
			function opAttrValid(isReuire){
				var idsArr=['#advanceTimeId','#reqContentId','#startPersonId'];
				$.each(idsArr,function(index,objId){
					$(objId).attr('require',isReuire);;
				});
				$("select[name='userId']").attr('require',isReuire);
				var uploads=$("input[name='uploads']");
				$.each(uploads,function(index,obj){
					if($(obj).val()==''){
						$(obj).attr('require',isReuire);
					}
				});
			}
		
		</script>	
	</head>
	<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" onload="loadfun();">
	<form name="applyForm" action="newBusinessReq_manage.action" method="post">
		<input type="hidden" name="bsType" value="${bsType}">
		<input type="hidden" name="str_procinstId" value="${procinstId}"/>
		
		<table width="980" border="0" cellspacing="0" cellpadding="0"
			align="center">
			<tr>
				<td>
					<table width="100%" border="0" cellpadding="0" cellspacing="0" background="<s:url value="/images/new/gxzl_index_2.gif"/>">

						<tr>
							<td width="20" height="32">
								&nbsp;
							</td>
							<td width="20">
								<img src="<s:url value="/images/new/dq_dot.gif"/>" width="15" height="12" />
							</td>
							<td>
								当前位置：
								<font color="#003399">管理需求单</font>
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td background="" class="leftbg">
					<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
						<tr>
							<td width="20%" valign="top">
								<div style="margin-left: 20px;margin-top: 5px;margin-bottom: 5px;margin-right: 20px">
									<button id="showGraphBtn" type="button" onclick="opAttrValid('false');commitForm('newBusinessReq_manage.action',false);" style="margin-right: 6px">提交</button>
									<button id="showGraphBtn" type="button" onclick="Echoice.popCenter('flowTaskCommon_printInstGraph.action?procinstId=${procinstId }',800,600)" style="margin-right: 6px">轨迹</button>
									<button id="backHistoryBtn" type="button" onclick="javascript:history.go(-1);" style="margin-right: 6px">返回</button>									
								</div>
								<table width="96%" border="0" cellspacing="0" cellpadding="0" height="400" 
									align="center" bgcolor="#FFFFFF">
									<tr>
										<td valign="top" align="center">
												
												<table width="100%" border="0" cellspacing="0"
													cellpadding="7" align="center" class=tablecolor2>
													<tr>
														<td background="<s:url value="/images/catalog_manage_bbs_3.gif"/>"
															colspan="4">
															<span style="margin-top: 0px; margin-left: 14px">
																<img src="<s:url value="/images/catalog_manage_12.gif"/>" width=13 height=13 alt="">
															</span>
															<strong>管理需求单</strong>
														</td>
													</tr>
													<tr>
														<td bgcolor="D6E3FA" width="14%">
															<div align="right" class="STYLE2">
																操作类型：
															</div>
														</td>
														<td colspan="3">
															<select name="manageType" onchange="change(this);" dataType="Require" msg="必选">
																<option value="">--请选择--</option>
																<option value="delete">删除</option>
																<option value="end">结束</option>
																<option value="change">变更办理人</option>
																<option value="businessTag">编辑业务标签</option>
															</select>
														</td>
													</tr>
													<tr id="trr">
														<td bgcolor="D6E3FA" width="14%">
															<div align="right" class="STYLE2">
																办 理 人：
															</div>
														</td>
														<td colspan="3">
															<select name="nowMan" style="width:180px" id="startPersonId" dataType="Require" msg="必选">
																<option value=""> </option>
															</select>
															<button type="button" onclick="selectMainPerson('startPersonId')" style="margin-left: 5px">选择人员</button>
														</td>
													</tr>
													
													<tr>
														<td bgcolor="D6E3FA" width="14%">
															<div id="dd" align="right" class="STYLE2">
																操作原因：
															</div>
														</td>
														<td colspan="3">
															<textarea name="reason" rows="3" cols="70" style="width: 99%;height: 80px" dataType="LimitB" min="1" max="512" msg="必填"></textarea>
														</td>
													</tr>
													
												</table>
												
												
										</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		</form>
	</body>
</html>